import axios from 'api/index'

// 列表
export function getWhiteListApi(params) {
  return axios.post('/api/identitys', params)
}

// 详情
export function getWhiteListDetailApi(id) {
  return axios.get(`/api/identity/${id}`)
}

// 添加
export function addWhiteListApi(data) {
  return axios.post('/api/identity', data)
}

// 删除
export function delWhiteListApi(id) {
  return axios.delete(`/api/identity/${id}`)
}
